home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpconnect / mozIJSSubScriptLoader.h next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  2.7 KB  |  100 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM mozIJSSubScriptLoader.idl
  3.  */
  4.  
  5. #ifndef __gen_mozIJSSubScriptLoader_h__
  6. #define __gen_mozIJSSubScriptLoader_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    mozIJSSubScriptLoader */
  19. #define MOZIJSSUBSCRIPTLOADER_IID_STR "8792d77e-1dd2-11b2-ac7f-9bc9be4f2916"
  20.  
  21. #define MOZIJSSUBSCRIPTLOADER_IID \
  22.   {0x8792d77e, 0x1dd2, 0x11b2, \
  23.     { 0xac, 0x7f, 0x9b, 0xc9, 0xbe, 0x4f, 0x29, 0x16 }}
  24.  
  25. class NS_NO_VTABLE mozIJSSubScriptLoader : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(MOZIJSSUBSCRIPTLOADER_IID)
  29.  
  30.   /**
  31.      * This method should only be called from JS!
  32.      * In JS, the signature looks like:
  33.      * rv loadSubScript (url [, obj]);
  34.      * @param url the url if the sub-script, it MUST be either a file:,
  35.      *            resource:, or chrome: url, and MUST be local.
  36.      * @param obj an optional object to evaluate the script onto, it
  37.      *            defaults to the global object of the caller.
  38.      * @retval rv the value returned by the sub-script
  39.      */
  40.   /* void loadSubScript (in wstring url); */
  41.   NS_IMETHOD LoadSubScript(const PRUnichar *url) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_MOZIJSSUBSCRIPTLOADER \
  47.   NS_IMETHOD LoadSubScript(const PRUnichar *url); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_MOZIJSSUBSCRIPTLOADER(_to) \
  51.   NS_IMETHOD LoadSubScript(const PRUnichar *url) { return _to LoadSubScript(url); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_MOZIJSSUBSCRIPTLOADER(_to) \
  55.   NS_IMETHOD LoadSubScript(const PRUnichar *url) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadSubScript(url); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class _MYCLASS_ : public mozIJSSubScriptLoader
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_MOZIJSSUBSCRIPTLOADER
  66.  
  67.   _MYCLASS_();
  68.  
  69. private:
  70.   ~_MYCLASS_();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIJSSubScriptLoader)
  78.  
  79. _MYCLASS_::_MYCLASS_()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. _MYCLASS_::~_MYCLASS_()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void loadSubScript (in wstring url); */
  90. NS_IMETHODIMP _MYCLASS_::LoadSubScript(const PRUnichar *url)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98.  
  99. #endif /* __gen_mozIJSSubScriptLoader_h__ */
  100.